package com.gec.anan.customer.service;

import com.gec.anan.model.entity.customer.CustomerInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gec.anan.model.form.customer.UpdateWxPhoneForm;
import com.gec.anan.model.vo.customer.CustomerLoginVo;

public interface CustomerInfoService extends IService<CustomerInfo> {

    Long login(String code);

    /**
     *
     * @description: 根据客户id获取客户信息
     * @param customerId
     * @return
     */
    CustomerLoginVo getCustomerInfo(Long customerId);

    /**
     * 更新手机号
     * @param updateWxPhoneForm
     * @return
     */
    Boolean updateWxPhoneNumber(UpdateWxPhoneForm updateWxPhoneForm);

    String getCustomerOpenId(Long customerId);
}
